import ApiBase from './ApiBase'

export default class DataSetService extends ApiBase {
    //获取数据集列表
    async getList(pageIndex, pageSize) {
        const result = await super.request('/data_set/list',{page_index: pageIndex, page_size: pageSize});
        return result;
    }

    async getAll() {
        const result = await super.request('/data_set/all');
        return result;
    }

    //添加数据集
    async add( dataName ) {
        const result = await super.request('/data_set/add',{data_set_name:dataName})
        return result
    }

    //删除
    async dele( id ) {
        const result = await super.request('/data_set/delete', {data_set_id: id})
        return result
    }
}